hip.jni.android.android_native_app_glue

Undocumented in source.

Members

Enums

APP_CMD_INPUT_CHANGED
anonymousenum APP_CMD_INPUT_CHANGED
Undocumented in source.
LOOPER_ID_MAIN
anonymousenum LOOPER_ID_MAIN
Undocumented in source.

Functions

ANativeActivity_onCreate
void ANativeActivity_onCreate(ANativeActivity* activity, void* savedState, size_t savedStateSize)
Undocumented in source. Be warned that the author may not have intended to support it.
android_app_post_exec_cmd
void android_app_post_exec_cmd(android_app* android_app, byte cmd)

Call with the command returned by android_app_read_cmd() to do the final post-processing of the given command. You must have done your own actions for the command before calling this function.

android_app_pre_exec_cmd
void android_app_pre_exec_cmd(android_app* android_app, byte cmd)

Call with the command returned by android_app_read_cmd() to do the initial pre-processing of the given command. You can perform your own actions for the command after calling this function.

android_app_read_cmd
byte android_app_read_cmd(android_app* android_app)

Call when ALooper_pollAll() returns LOOPER_ID_MAIN, reading the next app command message.

android_main
void android_main(android_app* app)

This is the function that application code must implement, representing the main entry to the app.

app_dummy
void app_dummy()

Dummy function you can call to ensure glue code isn't stripped.

Structs

android_app
struct android_app

This is the interface for the standard glue code of a threaded application. In this model, the application's code is running in its own thread separate from the main thread of the process. It is not required that this thread be associated with the Java VM, although it will need to be in order to make JNI calls any Java objects.

android_poll_source
struct android_poll_source

Data associated with an ALooper fd that will be returned as the "outData" when that source has data ready.

Meta